package cn.etynit.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StockDto {
    @NotNull(message = "参数不能为空！")
    private Long productId;
    @NotNull(message = "参数不能为空！")
    private Integer count;
    @NotNull(message = "参数不能为空！")
    private Integer status; // 0入库，1出库
}
